package com.ihr360.oneclick.dao;

import com.ihr360.oneclick.dto.OneClickTermMetaDto;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author tom
 * @date 17-12-20
 */
public interface OneClickTermMetaDao extends JpaRepository<OneClickTermMetaDto, String> {

    @Transactional
    void deleteByTermId(String termId);

    OneClickTermMetaDto findByTermIdAndMetaKey(String termId, String metaKey);

}
